RowFilter including [ character in search string
Posted
by JeffC
on Stack Overflow
See other posts from Stack Overflow
or by JeffC
Published on 2010-04-05T18:58:00Z
Indexed on
2010/04/06
3:43 UTC
Read the original article
Hit count: 429
I fill a DataSet and allow the user to enter a search string. Instead of hitting the database again, I set the RowFilter to display the selected data. When the user enters a square bracket ( "[" ) I get an error "Error in Like Operator". I know there is a list of characters that need prefixed with "\" when they are used in a field name, but how do I prevent RowFilter from interpreting "[" as the beginning of a column name?
© Stack Overflow or respective owner